<?php
defined('_JEXEC') or die ('Restricted access');


function com_install() 
{

    @chdir(JPATH_ROOT."/images/stories/ecard");
    $oldumask = umask(0);
    @mkdir(JPATH_ROOT."/images/stories/ecard/", 0777);
    umask($oldumask);

   $topath=JPATH_ROOT.DS.'images'.DS.'stories'.DS.'ecard'.DS;
   $frompath=JPATH_ROOT.DS.'components'.DS.'com_odudecard'.DS.'images'.DS;
   if (copy($frompath."birthday.jpg", $topath."birthday.jpg"))
   {
    echo "Sample Large Card copied <br>";
}

   if (copy($frompath."birthday_ss.jpg", $topath."birthday_ss.jpg"))
   {
    echo "Sample Thumbnail copied <br>";
}
   if (copy($frompath."birthday_banner.jpg", $topath."birthday_banner.jpg"))
   {
    echo "Sample Banner copied <br>";
}
   if (copy($frompath."birthday_bg.gif", $topath."birthday_bg.gif"))
   {
    echo "Sample Background Image copied <br>";
}
?>
<center>
    <table width="100%" border="0">
        <tr>
            <td>
                ODude.com
            </td>
            <td>
                <strong>ODude Ecard - A Joomla E-Card Component</strong>
                <br/>
            
                <font class="small">
                    &copy; Copyright 2010 by ODude
                    <br/>
                    Released under the terms and conditions of the <a href="index2.php?option=com_admisc&task=license">GNU General Public License</a>.
                </font>
                <br/>
            </td>
        </tr>
        <tr>
            <td>&nbsp;
                
            </td>
        </tr>
        <tr>
            <td background="E0E0E0" style="border:1px solid #999;color:green;font-weight:bold;" colspan="2">
                Installation finished.
            </td>
        </tr>
        <tr>
            <td>&nbsp;
                
            </td>
        </tr>
    </table>
</center>
<?php
}
?>
